import com.zhang.dao.TeacherMapper;
import com.zhang.pojo.Teacher;
import com.zhang.utils.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

public class Mytest {

    public static void main(String[] args) {
        SqlSession sqlSession = MybatisUtils.getSqlSession();
        TeacherMapper teacherMapper = sqlSession.getMapper(TeacherMapper.class);
        Teacher teacher = teacherMapper.getTeacher(1);
        System.out.println(teacher);
        sqlSession.close();

    }

}
